package cn.levill.domain.activity.service;

import cn.levill.domain.activity.model.entity.PartakeRaffleActivityEntity;
import cn.levill.domain.activity.model.entity.UserRaffleOrderEntity;

/**
 * @author Levill
 * @description 抽奖活动参与服务
 * @date 2025/02/23 17:13
 */
public interface IRaffleActivityPartakeService {

    /**
     * 创建订单
     *
     * @param partakeRaffleActivityEntity 参与抽奖活动实体对象
     * @return 用户抽奖订单实体对象
     */
    UserRaffleOrderEntity createOrder(PartakeRaffleActivityEntity partakeRaffleActivityEntity);


    /**
     * 创建订单
     *
     * @param userId     用户 ID
     * @param activityId 活动 ID
     * @return {@link UserRaffleOrderEntity }
     */
    UserRaffleOrderEntity createOrder(String userId, Long activityId);
}
